package com.training;

public class NameRunnable implements Runnable {
	//System.out.println("Thread Start ="+Thread.currentThread().getName()+"; Time ="+System.currentTimeMillis());
	int a, b, c;
	public  void run(){
	  a = 10;
	  highJump(); longJump(); running();
	}

	public void highJump(){
	for(int count=0; count<1000; count++){
	System.out.print("*");
	}
	if(Thread.currentThread().getName().equals("Subasri")){
	a = 20;
	}
	}

	public void longJump(){
	b = 5;
	}

	public void running(){
	c = a - b;
	//a = 0;
	//b = 0;
	System.out.println("\n The thread name is "+Thread.currentThread().getName()+" C is "+c);
	}
	  
	 }
	 
	